package Pages;
/*
 *  J2Egn version 2.6.28
 *  Author: Van Tan Tai 2010-2011
 *  static function
 */
import java.io.IOException;
import java.util.Vector;

import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;

public class Static {
	
	public static void init(){
	}
	public static void destroy(){
	}
	
	public static String[] split(String original,String separator)
	{
        Vector nodes=new Vector();
	    int index = original.indexOf(separator);
	    while(index>=0)
	    {
	        nodes.addElement( original.substring(0, index));
	        original = original.substring(index+separator.length());
	        index = original.indexOf(separator);
	    }
	    nodes.addElement( original );
	    String[] result = new String[ nodes.size() ];
	    if( nodes.size()>0 )
	    {
	        for(int loop=0; loop<nodes.size(); loop++)
	        {
	            result[loop] = (String)nodes.elementAt(loop);

	        }
	    }
	    return result;
	}

}
